From b3a60675413300b2268ecba6232b98b2cc96c433 Mon Sep 17 00:00:00 2001 From: Daniel Boles Date: Tue, 1 Aug 2017 13:35:39 +0100 Subject: [PATCH] Entry: Warn about corner case hiding icon tooltips https://bugzilla.gnome.org/show_bug.cgi?id=785672#c4 --- gtk/gtkentry.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index 8457cdf8cd..af12425ca3 100644 --- a/gtk/gtkentry.c +++ b/gtk/gtkentry.c @@ -8159,6 +8159,12 @@ gtk_entry_get_icon_tooltip_text (GtkEntry *entry, * See also gtk_widget_set_tooltip_text() and * gtk_entry_set_icon_tooltip_markup(). * + * If you unset the widget tooltip via gtk_widget_set_tooltip_text() or + * gtk_widget_set_tooltip_markup(), this sets GtkWidget:has-tooltip to %FALSE, + * which suppresses icon tooltips too. You can resolve this by then calling + * gtk_widget_set_has_tooltip() to set GtkWidget:has-tooltip back to %TRUE, or + * setting at least one non-empty tooltip on any icon achieves the same result. + * * Since: 2.16 */ void -- 2.30.2